<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_info.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>
<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>

<style>
#SWFUpload_0{
	margin-top: 70px;
    margin-left: -30px;
}
</style>
<script>
$(function(){
	$("#periodlist2").addClass("active");
});
var saveQuestion = function(){
	var id = $("#id").val();
	var teacherid = $("#teacherid").val();
	var gw = $("#gw").val();
	var rztime=$("#rztime").val();
	var zpls = $("#zpls").val();
	var zryj = $("#zryj").val();
	var beizhu1 = $("#beizhu1").val();
	var zgyj = $("#zgyj").val();
	var beizhu2 = $("#beizhu2").val();
	var mqzd_time = $("#mqzd_time").val();
	$.post("${contextPath}/index/add_turnover.json", {
		    "id":id,
		    "teacherid":teacherid,
			"gw":gw,
			"rztime":rztime,
			"zpls":zpls,
			"zryj":zryj,
			"beizhu1":beizhu1,
			"zgyj":zgyj,
			"beizhu2":beizhu2,
			"mqzd_time":mqzd_time
		},function(ms){
		if(ms.msg != 0){
		       alert("操作成功");
			   setTimeout(function(){
			   window.location.href = "${contextPath}/index/turnover.htm";
			  },2000);
		}else{
			 alert("操作失败");
		}
	});
};
$(function(){
	$("#teacherid").change(function(){
		var teacherid = $("#teacherid").val();
	    $.post("${contextPath}/index/getrecruitByteaid.json", {
	    	"teacherid" : teacherid
		}, function(ms) {
	    	if(ms.msg != null){
	    		alert(ms.msg);
	    	}
	    	var list = ms.list;
	    	var center = list.center;
	    	var rztime = list.rztime;
	    	var post = list.post;
	    	var name = list.username;
	    	$("#sszx").val(center);
	    	$("#rztime").val(rztime);
	    	$("#gw").val(post);
	    	$("#zpls").val(name);
	    });
	})
});
</script>
</head>
<input type="hidden" id="id" value="<#if turnover??>${turnover.id}</#if>">
<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>组织架构</li>
			<li>&gt;</li>
			<li class="current">title</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">添加员工转正情况</div>
		<table id="infotable">
			<tr>
				<td width="100"><label class="zt_widthlabel">中心主任:</label></td>
				<td id="zxzr" name="zxzr" value="${nickname}">${nickname}</td>
			</tr>
			<tr>
			<td width="100"><label class="zt_widthlabel">老师姓名</label></td>
				<td>
				<select id="teacherid">
            		<option value="">请选择</option>
            		<#if sylist??>
              			<#list sylist as ls>
              				<option value="${ls.nickname1}">${ls.nickname1}</option>
              			</#list>
            		</#if>
            	</select>	
            	</td>	
			</tr>
	         <tr>
			<td width="100"><label class="zt_widthlabel">所属中心</label></td>
				<td><input type="text" id="sszx" name="sszx" value="" size="50"></td>	
			</tr>
			<tr>	
				<td width="100"><label class="zt_widthlabel">岗位</label></td>
				<td><input type="text" id="gw" name="gw" value="" size="50"></td>
			</tr>
			 <tr>
				<td width="100"><label class="zt_widthlabel">入职日期:</label></td>
				<td><input type="text" id="rztime" name="rztime" value="" size="50"></td>
			</tr>
			 <tr>
				<td width="100"><label class="zt_widthlabel">负责招聘的老师:</label></td>
				<td><input type="text" id="zpls" name="zpls" value="" size="50"></td>
			</tr>
			 <tr>
				<td width="100"><label class="zt_widthlabel">目前状态:</label></td>
				<td><input type="text" id="mqzd_time" size="20" maxlength="20" rel="DATE::Y-m-d" />提前享受转正待遇</td>
			</tr>
			 <tr>
				<td width="100"><label class="zt_widthlabel">试用期时间:</label></td>
				<td>试用期6个月</td>
			</tr>
			 <tr>
				<td width="100"><label class="zt_widthlabel">中心主任意见:</label></td>
				<td><select id="zryj">
					<option value="">请选择</option>
					<option value="1">建议享受转正待遇</option>
					<option value="2">建议继续培训</option>
					<option value="3">建议辞退</option>
					<option value="4">已提出离职</option>
				</select>
				<input type="text" id="beizhu1" value="" size="50"></td>
			</tr>
			 <tr>
				<td width="100"><label class="zt_widthlabel">部门主管意见:</label></td>
				<td><select id="zgyj">
					<option value="">请选择</option>
					<option value="1">建议享受转正待遇</option>
					<option value="2">建议继续培训</option>
					<option value="3">建议辞退</option>
					<option value="4">已提出离职</option>
				</select>
				<input type="text" id="beizhu2" value="" size="50"></td>
			</tr>
		</table>
		<div id="controlbar">
			<input type="button" class="submit" onclick="saveQuestion()" value="  保  存  " />
		</div>
	</div>
</body>
</html>